var config = require("core/config");
var host = config.host;
var baseUrl = host + "/pub";
var commentUrl = baseUrl + "/comment";
var concernUrl = baseUrl + "/concern";
var praiseUrl = baseUrl + "/praise";
var reportrl = baseUrl + "/report";
var promotionUrl = baseUrl + "/promotion";
var feedbackUrl = baseUrl + "/feedback";
module.exports.url = {
	comment : {
		doAdd : commentUrl + "/doAdd",
		list : commentUrl + "/list",
		managePage : commentUrl + "/manage/page",
		doDelete : commentUrl + "/doDelete",
		comment2me : commentUrl + "/manage/comment2me"
	},
	concern : {
		doAdd : concernUrl + "/doAdd",
		doCancle : concernUrl + "/doCancle",
		list : concernUrl + "/list",
		page : concernUrl + "/page",
		managePage : concernUrl + "/manage/page",
		myFavorite: concernUrl + "/manage/myFavorite" //我的收藏【不包括关注用户】
	},
	praise : {
		doAdd : praiseUrl + "/doAdd",
		doCancle : praiseUrl + "/doCancle",
		list : praiseUrl + "/list",
		managePage : praiseUrl + "/manage/page",
		praise2me : praiseUrl + "/manage/praise2me",
		praiseNew2me : praiseUrl + "/manage/praiseNew2me"
	},
	report : {
		doAdd : reportrl + "/doAdd",
		list : reportrl + "/list"
	},
	promotion : {
		list : promotionUrl + "/list",
		create : promotionUrl + "/create",
	},
	feedback :{
		toAdd : feedbackUrl + "/toAdd",
		doAdd : feedbackUrl + "/doAdd",
		doAdd2 : feedbackUrl + "/doAdd2",
		page : feedbackUrl + "/page"
	},
};
var upgradeUrl = baseUrl + "/upgrade";
var upgradeVersionUrl = upgradeUrl + "/version";
module.exports.upgrade = {
	get : upgradeUrl + "/get",
	checkUpgrade : upgradeUrl + "/checkUpgrade",
	version :{
		getByVersion : upgradeVersionUrl + "/getByVersion"
	}
};